#include "func.h"
#include "var.h"
//#include "image.h"
#include "ai.cpp"


int main(int argc, char **argv)
{
	initgraph(1000, 800);
	setcaption("五子棋");
	setcolor(BLACK);
	setrendermode(RENDER_MANUAL);
	setfont(18, 0, "canosal");
	setbkcolor(EGERGB(181, 131, 76));
	getImage();
	int op;
	while (op = stwindow(), op)
	{
		prx = -100, pry = -100;
		if (op == 1)
			pvp();
		else if (op == 2)
		{
			int op1 = choose();
			if (op1 == 2)
				pvc1();
			else if (op1 == 1)
				pvc();
		}
	}

	delImage();
	closegraph();
	return 0;
}
